#ifndef ASRPRO_H
#define ASRPRO_H

#include <Arduino.h>

class ASRPro {
public:
    ASRPro(HardwareSerial *serial, int rxPin, int txPin, int wakePin = -1);
    void begin(long baud = 9600);   // 初始化 UART
    void sendCommand(const String &cmd);
    void checkResponse();           // 读取模块返回

private:
    HardwareSerial *_serial;
    int _rxPin;
    int _txPin;
    int _wakePin;
};

#endif